<template>
  <div class="bos">
    <Head
      :title="`${this.$route.query.title}`"
      style="border-bottom: 2px solid #dad9df"
      id="backstyle"
    >
    <img src="../../../assets/black_star.png" alt="" />
    </Head>
    <div class="to">
      <!-- 文化背景区域 -->
      <div class="area-center">
        <!-- 内容区域 -->
        <div class="context richText bold-size" v-html="list"></div>
      </div>
    </div>
  </div>
</template>

<script>
import Head from "@/components/public/HeadPage.vue";

import { findByTitle } from "@/api/index";
export default {
  data() {
    return {
      list: "",
    };
  },
  components: {
    Head,
  },
  mounted() {
    findByTitle({
      id: this.$route.query.id,
    }).then((res) => {
      if (res.data.code == 200) {
        this.list = this.dataHTML(res.data.data.context);
      }
    });
  },
};
</script>

<style scoped>
.bos {
  width: 100%;
}
.to {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* 头标区域 */
.Head_top img {
  width: 0.2rem;
  margin-right: 0.05rem;
}
.xiao {
  width: 100%;
  display: flex;
  background-color: white;
}
/* 左边区域 */
.xiao .left {
  width: 5%;
  height: 100%;
  margin-left: 0.2rem;
}
.xiao .left img {
  width: 0.2rem;
  height: 0.2rem;
  margin-top: 0.03rem;
}
.zhong {
  padding-left: 0.1rem;
  line-height: 0.27rem;
  font-weight: 700;
}
h3 {
  height: 0.3rem;
  line-height: 0.3rem;
  text-align: center;
  border-radius: 0.1rem;
  margin: 0.05rem 0;
  background-color: white;
}
/* 内容区域 */
.context {
  width: 100%;
}
</style>